﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace IRProject.Model
{
    class ResultOrderComparer : IComparer<ResultData> 
    {
        public int Compare(ResultData x, ResultData y)
        {
            if (x.Similarity > y.Similarity)
                return -1;
            if (x.Similarity < y.Similarity)
                return 1;
            //if (rx.Similarity == ry.Similarity)
                return 0;
        }
    }
}
